/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const tableRouter = {
    path: '/table',
    component: Layout,
    redirect: '/table/complex-table',
    name: 'Table',
    meta: {
        title: 'Table',
        icon: 'table',
        guid: '99abc772-1e4b-11ef-a12f-00163e0acd8d',
        roles: ['admin']
    },
    children: [{
            path: 'dynamic-table',
            component: () =>
                import ('@/views/table/dynamicTable/index'),
            name: 'DynamicTable',
            meta: {
                title: 'dynamicTable',
                guid: 'a16fec71-1e4b-11ef-a12f-00163e0acd8d',
                roles: ['admin']
            }
        },
        {
            path: 'drag-table',
            component: () =>
                import ('@/views/table/dragTable'),
            name: 'DragTable',
            meta: {
                title: 'dragTable',
                guid: 'a6257c6b-1e4b-11ef-a12f-00163e0acd8d',
                roles: ['admin']
            }
        },
        {
            path: 'inline-edit-table',
            component: () =>
                import ('@/views/table/inlineEditTable'),
            name: 'InlineEditTable',
            meta: {
                title: 'inlineEditTable',
                guid: 'a9502fdf-1e4b-11ef-a12f-00163e0acd8d',
                roles: ['admin']
            }
        },
        {
            path: 'tree-table',
            component: () =>
                import ('@/views/table/treeTable/treeTable'),
            name: 'TreeTableDemo',
            meta: {
                title: 'treeTable',
                guid: 'ac6a8dfe-1e4b-11ef-a12f-00163e0acd8d',
                roles: ['admin']
            }
        },
        {
            path: 'custom-tree-table',
            component: () =>
                import ('@/views/table/treeTable/customTreeTable'),
            name: 'CustomTreeTableDemo',
            meta: {
                title: 'customTreeTable',
                guid: 'b033e851-1e4b-11ef-a12f-00163e0acd8d',
                roles: ['admin']
            }
        },
        {
            path: 'complex-table',
            component: () =>
                import ('@/views/table/complexTable'),
            name: 'ComplexTable',
            meta: {
                title: 'complexTable',
                guid: 'b42c8738-1e4b-11ef-a12f-00163e0acd8d',
                roles: ['admin']
            }
        }
    ]
}
export default tableRouter